//
//  SecondRightCollectionViewCell.m
//  项目A --半糖
//
//  Created by romana on 16/5/23.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "SecondRightCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@implementation SecondRightCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        
        [self createViews];
    }
    return self;


}


-(void)createViews{

    self.myImageV = [[UIImageView alloc] init];
    [self.contentView addSubview:self.myImageV];



}

-(void)layoutSubviews{

    [super layoutSubviews];
    
    self.myImageV.frame = self.bounds;

}

-(void)setModel:(SecondRightModel *)model{

    _model = model;
    
    [self.myImageV sd_setImageWithURL:[NSURL URLWithString:_model.mini_pic_url]];

}


@end
